package se581.banker;

public class BankerConstants {
	
	// How much clock time each tick represents in mill
	public static final int TICK_LENGTH = 500;
	
	// Checkpointing intervals in ticks
	public static final int CHECKPOINT_FULL_INTERVAL = 5000;   // Datastore
	public static final int CHECKPOINT_PARTIAL_INTERVAL = 500; // Log file
	
	public static final int UPDATE_HEARTBEAT_INTERVAL = 3;
	
	public static final String INPUT_EVENT_FILENAME = "event_data.txt";
	//public static final String INPUT_EVENT_FILENAME = "TrackManagerInput_test_failover.txt";
	public static final String OUTPUT_FILENAME = "TrackManagerOutput.txt";
	public static final String CHECKPOINT_OUTPUT_FILENAME = "TrackerDatastore.CPT";
	public static final String CHECKPOINT_PARTIAL_FILENAME = "TrackerDatastorePartial.txt";
	
	public enum TrackerEventType 
	{
		NEW, MOVE, UPDATE, END, WHEREIS, LASTUPDATE, HISTORY, BALANCE, BLANK, FAIL
	}
	
	public enum SimProcessor 
	{
		P1, P2
	}
	
	public enum TrackerEventGroup 
	{
		UPDATE, QUERY, BLANK, FAIL
	}
	
	// Server Heartbeat status
	public static final String OK_STATUS = "ok";
	public static final String STARTING_STATUS = "starting_status";
}
